package com.unbox.quartz.service;


import com.unbox.quartz.entity.ScheduleJob;

public interface ScheduleJobInService {

    /**
     * 插入数据
     * @param scheduleJob
     * @return
     */
    int insert(ScheduleJob scheduleJob);

    /**
     * 插入数据
     * @param scheduleJob
     * @return
     */
    int insertSelective(ScheduleJob scheduleJob);

    /**
     * 查询任务组
     * @param jobName
     * @param groupName
     * @return
     */
    ScheduleJob selectByJobNameAngJobGroup(String jobName, String groupName);

    /**
     * 查询指定任务
     * @param id
     * @return
     */
    ScheduleJob selectByPrimaryKey(Integer id);

    /**
     * 编辑任务
     * @param scheduleJob
     * @return
     */
    int updateByPrimaryKey(ScheduleJob scheduleJob);

    /**
     * 编辑任务
     * @param scheduleJob
     * @return
     */
    int updateByExample(ScheduleJob scheduleJob);

    /**
     * 删除指定任务
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * 删除指定job
     * @param jobName
     * @param jobGroup
     * @return
     */
    int deleteByJobNameAndJobGroup(String jobName, String jobGroup);
}
